package com.hycat.mail.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hycat.mail.common.utils.PageUtil;
import com.hycat.mail.ware.entity.WareSkuEntity;
import com.hycat.mail.ware.mq.entity.UnLockStockTo;
import com.hycat.mail.ware.vo.OrderLockStockVo;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author lzhycat
 * @email 2680628835@qq.com
 * @date 2022-07-16 20:30:08
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtil queryPage(Map<String, Object> params);

    Map<Long, Long> stockDetails(List<Long> skuIds);

    Boolean orderLockStock(OrderLockStockVo orderLockStockVo);

    void unLockStock(UnLockStockTo unLockStockTo);
}

